import { apiRequest } from "../utils/request";
//我的优惠券列表
export function selectMyCouponLst(data: any) {
  return apiRequest({
    url: `/selectMyCouponLst.do`,
    method: "post",
    data,
  });
}
//地址列表
export function selectAddressLst(data: any) {
  return apiRequest({
    url: `/selectAddressLst.do`,
    method: "post",
    data,
  });
}

//地址新增
export function addUserAddress(data: any) {
  return apiRequest({
    url: `/addUserAddress.do`,
    method: "post",
    data,
  });
}
//地址修改
export function updateUserAddress(data: any) {
  return apiRequest({
    url: `/updateUserAddress.do`,
    method: "post",
    data,
  });
}
//- 地址删除
export function deleteUserAddress(data: any) {
  return apiRequest({
    url: `/deleteUserAddress.do`,
    method: "post",
    data,
  });
}
//- 默认地址详情byUserId
export function selectDefaultAddressByUserId(data: any) {
  return apiRequest({
    url: `/selectDefaultAddressByUserId.do`,
    method: "post",
    data,
  });
}
//- 查询用户个人信息
export function selectUserInfoByUserId(data: any) {
  return apiRequest({
    url: `/selectUserInfoByUserId.do`,
    method: "post",
    data,
  });
}

//- 修改用户昵称
export function updateUserNickName(data: any) {
  return apiRequest({
    url: `/updateUserNickName.do`,
    method: "post",
    data,
  });
}
//- 查询账户
export function selectUserAccountInfo(data: any) {
  return apiRequest({
    url: `/selectUserAccountInfo.do`,
    method: "post",
    data,
  });
}
//- 查询账户流水
export function selectUserRechargeRecord(data: any) {
  return apiRequest({
    url: `/selectUserRechargeRecord.do`,
    method: "post",
    data,
  });
}

//- 消息列表
export function selectMsgLst(data: any) {
  return apiRequest({
    url: `/selectMsgLst.do`,
    method: "post",
    data,
  });
}

//- 意见反馈
export function feedBack(data: any) {
  return apiRequest({
    url: `/feedBack.do`,
    method: "post",
    data,
  });
}
//- 修改登陆密码
export function updateUserPsw(data: any) {
  return apiRequest({
    url: `/updateUserPsw.do`,
    method: "post",
    data,
  });
}

//- 修改支付密码
export function updateUserPayPsw(data: any) {
  return apiRequest({
    url: `/updateUserPayPsw.do`,
    method: "post",
    data,
  });
}
//- 去发货
export function shopShipments(data: any) {
  return apiRequest({
    url: `/shopShipments.do`,
    method: "post",
    data,
  });
}

// 绑定支付宝
export function updateUserAliPay(data: any) {
  return apiRequest({
    url: `/updateUserAliPay.do`,
    method: "post",
    data,
  });
}

// 查询APP版本号
export function selectVersion(data: any) {
  return apiRequest({
    url: `/selectVersion.do`,
    method: "post",
    data,
  });
}
